public class Point3D extends Point2D{
	protected int z;


	public Point3D(){
		super();
	}

	public Point3D(int x,int y,int z){
		super(x,y);
		this.z=z;
	}

	public void setZ(int z){
		this.z=z;
	}

	public int getZ(){
		return z;
	}


	//change method
	public int getTatal(){
		return x+y+z;
	}


	public Point3D getCopy(){
		return new Point3D(x,y,z);
	}
}